import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "element-plus/theme-chalk/dark/css-vars.css";
import App from "./App.vue";
import router from "./router";
import './assets/scss/global.scss'
import directive from "./directive";

// 引入md样式
import 'vditor/dist/index.css';
const app = createApp(App);

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(directive);
app.use(ElementPlus);
app.use(router);
app.mount("#app");
